<?php

namespace common\models\activity;

use Yii;

/**
 * This is the model class for table "{{%activity_enroll_data}}".
 *
 * @property int $id
 * @property int $activity_id 活动ID
 * @property int $enroll_id 报名ID
 * @property int $field_id 关联字段ID
 * @property string|null $data_type
 * @property string|null $content 扩展信息内容
 * @property int $status 当前阶段状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class ActivityEnrollData extends \common\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%activity_enroll_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['activity_id', 'enroll_id', 'field_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['data_type'], 'string', 'max' => 50],
            [['content'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'activity_id' => '活动ID',
            'enroll_id' => '报名ID',
            'field_id' => '关联字段ID',
            'data_type' => 'Data Type',
            'content' => '扩展信息内容',
            'status' => '当前阶段状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
